<?php


namespace app\disk\validate;
use think\Validate;
use think\facade\Db;

class IndexValidate extends Validate
{	
    protected $rule = [
		'name' => 'require',
		'id' => 'require',
	];

    protected $message = [
		'name.require' => '名称不能为空',
		'id.require' => '缺少更新条件',
	];
	
    protected $scene = [
        'add' => ['title'],
        'edit' => ['title', 'id'],
    ];
}